'use strict';

var HomeController = function($scope, $http) {
	$scope.fetchLastestProductList = function() {
        $http.get('home/latestProducts.json').success(function(products){
            $scope.products = products;
        });
    };
    
    $scope.fetchLastestProductList();
};